#include <iostream>
using namespace std;

class A
{
public:
    A()
    {
        cout << "A()" << endl;
        p = new char[10];
    }
    ~A()
    {
        cout << "~A()" << endl;
        delete[] p;
    }

private:
    char *p;
};

int main()
{
    A *a = new A();
    return 0;
}